The phrase "which-ever is earlier" is used to indicate the earliest of two or more events.
जो भी पहले हो
English Usage: Complete the project by March 31st, or by the time the budget is approved, whichever is earlier.
Hindi Usage: परियोजना को 31 मार्च तक या बजट स्वीकृत होने तक, जो भी पहले हो, पूरा करें।